using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._CartographyTools._Generalization
{
    /// <summary>
    /// <para>Collapse Hydro Polygons</para>
    /// <para>Collapse Hydro Polygons</para>
    /// <para>折叠水体多边形</para>
    /// </summary>    
    [DisplayName("Collapse Hydro Polygons")]
    public class CollapseHydroPolygons : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public CollapseHydroPolygons()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_polygons">
        /// <para>Input Hydro Polygons</para>
        /// <para></para>
        /// <para></para>
        /// </param>
        /// <param name="_collapse_dist">
        /// <para>Minimum width for collapsing</para>
        /// <para></para>
        /// <para></para>
        /// </param>
        /// <param name="_out_polygon_feature_class">
        /// <para>Output Polygon Feature Class</para>
        /// <para></para>
        /// <para></para>
        /// </param>
        /// <param name="_out_line_feature_class">
        /// <para>Output Line Feature Class</para>
        /// <para></para>
        /// <para></para>
        /// </param>
        public CollapseHydroPolygons(List<object> _in_polygons, string? _collapse_dist, object _out_polygon_feature_class, object _out_line_feature_class)
        {
            this._in_polygons = _in_polygons;
            this._collapse_dist = _collapse_dist;
            this._out_polygon_feature_class = _out_polygon_feature_class;
            this._out_line_feature_class = _out_line_feature_class;
        }
        public override string ToolboxName => "Cartography Tools";

        public override string ToolName => "Collapse Hydro Polygons";

        public override string CallName => "cartography.CollapseHydroPolygons";

        public override List<string> AcceptEnvironments => [];

        public override object[] ParameterInfo => [_in_polygons, _in_lines, _collapse_dist, _collapse_dist_tol, _context_ratio, _out_polygon_feature_class, _out_line_feature_class];

        /// <summary>
        /// <para>Input Hydro Polygons</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Hydro Polygons")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public List<object> _in_polygons { get; set; }


        /// <summary>
        /// <para>Input Hydro Lines</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Hydro Lines")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public List<object> _in_lines { get; set; } = null;


        /// <summary>
        /// <para>Minimum width for collapsing</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Minimum width for collapsing")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public string? _collapse_dist { get; set; }


        /// <summary>
        /// <para>Minimum width tolerance %</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Minimum width tolerance %")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public double? _collapse_dist_tol { get; set; } = null;


        /// <summary>
        /// <para>Context decision ratio (length/width)</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Context decision ratio (length/width)")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public double? _context_ratio { get; set; } = null;


        /// <summary>
        /// <para>Output Polygon Feature Class</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output Polygon Feature Class")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _out_polygon_feature_class { get; set; }


        /// <summary>
        /// <para>Output Line Feature Class</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output Line Feature Class")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _out_line_feature_class { get; set; }


        public CollapseHydroPolygons SetEnv()
        {
            base.SetEnv();
            return this;
        }

    }

}